// 系统统计相关API
window.statisticsAPI = {
    // 获取管理员首页统计数据
    getDashboardData: async () => {
        try {
            const response = await apiClient.get('/api/statistics/dashboard');
            return response;
        } catch (error) {
            console.error('获取管理员首页统计数据失败:', error);
            throw error;
        }
    },

    // 获取员工个人数据概览
    getPersonalOverview: async () => {
        try {
            const response = await apiClient.get('/api/statistics/personal-overview');
            return response;
        } catch (error) {
            console.error('获取员工个人数据概览失败:', error);
            throw error;
        }
    },

    // 获取本月考勤状态统计
    getMonthlyStatus: async () => {
        try {
            const response = await apiClient.get('/api/attendances/monthly-status');
            return response;
        } catch (error) {
            console.error('获取本月考勤状态失败:', error);
            throw error;
        }
    }
};
